package com.topisv.tms.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.topisv.tms.entity.Items;
import com.topisv.tms.repository.ItemsDao;

//Spring Bean的标识.
@Component
// 默认将类中的所有public函数纳入事务管理.
@Transactional(readOnly = true)
public class ItemsService {

	@Autowired
	private ItemsDao itemsDao;
	
	public Items findOne(Long itemsId){
		return itemsDao.findOne(itemsId);
	}
}
